{% extends '_link.html' %}

{% block content %}
    <div class="main-box card">
        <div class="card-header" style="background-color: #e1a141;color: white">
            <h2>User Register</h2>
        </div>


        <div class="card-body">
            <hr>
            <form METHOD="post" novalidate>

                {# username#}
                <div class="form-group row">
                    <label for="username" class="col-sm-2">Username</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="username" id="username"
                               placeholder="please enter username"/>
                    </div>
                </div>
                {#  pwd#}
                <div class="form-group row">
                    <label for="password" class="col-sm-2">Password</label>
                    <div class="col-sm-10">
                        <input type="password" class="form-control" id="password"
                               placeholder="please enter a 8 character password" name="password"/>
                    </div>
                </div>
                {# age#}
                <div class="form-group row">
                    <label for="age" class="col-sm-2">Your Age</label>
                    <div class="col-sm-10">
                        <input type="number" class="form-control" id="age" name="age"
                               placeholder="please enter your age"/>
                    </div>
                </div>

                <button type="submit" class="btn btn-warning" style="margin: 20px 0">Register</button>
            </form>
            <div>
                <button type="button" class="btn btn-link btn-sm"
                        onclick="location.href='/login'">Go Login
                </button>
            </div>
        </div>

    </div>

    <style>
        .main-box {
            margin: 80px auto;
            width: 600px;
        }
    </style>
{% endblock %}